package com.piece.core.framework.constant;

public interface PatternConstants {

    // 用户名验证规则
    String USERNAME = "[a-zA-Z0-9_\\u4e00-\\u9fa5]{6+}";

    // 邮箱验证规则
    String EMAIL = "(\\w)+(\\.\\w+)*@(\\w)+((\\.\\w{2,3}){1,3})";

    // 手机号验证规则
    String MOBILE = "((13[0-9])|(14[5,7,9])|(15([0-3]|[5-9]))|(166)|(17[0,1,3,5,6,7,8])|(18[0-9])|(19[8|9]))\\\\d{8}";

    // 密码格式规则
    String PASSWORD = "(?=.*[a-z])(?=.*\\\\d)(?=.*[#@!~%^&*])[a-z\\\\d#@!~%^&*]{6,12}";
}